package com.dc.flow.network

sealed class BaseResult<out R> {

    data class Success<out T>(val data: T): BaseResult<T>()
    data class Error(val exception: Throwable): BaseResult<Nothing>()
    data class Loading(val loading: Boolean = true): BaseResult<Nothing>()
}